home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / porttool.zip / RM.MAN < prev    next >
Text File  |  1992-12-03  |  3KB  |  60 lines

  1.  
  2.    NNAAMMEE
  3.       rm - remove files or directories
  4.  
  5.    SSYYNNOOPPSSIISS
  6.       rrmm [ _-_f_h_i_k_l_v ] _f_i_l_e ...
  7.       rrmm [ _-_f_h_i_k_l_r_v ] _d_i_r_e_c_t_o_r_y ... [ _f_i_l_e ... ]
  8.  
  9.    DDEESSCCRRIIPPTTIIOONN
  10.       rrmm removes one or more files from a directory.
  11.  
  12.       If a file is marked read-only and the standard input is a terminal,
  13.       the message "_f_i_l_e: read-only ? " is printed.  This is a prompt for
  14.       confirmation.  If the answer begins with y (for yes), the file is
  15.       deleted, otherwise the file remains.
  16.  
  17.       Note that if the standard input is not a terminal, the command will
  18.       operate as if all answers are "yes".
  19.  
  20.    OOPPTTIIOONNSS
  21.       --ff Remove all files (whether read-only or not) in a directory
  22.          without prompting the user.  Incompatible with --kk.
  23.  
  24.       --hh Display a short help message.
  25.  
  26.       --ii Interactively confirm the removal of each file.  Overrides the
  27.          --ff option and remains in effect even if the standard input is
  28.          not a terminal.
  29.  
  30.       --kk Keep all read-only files without prompting the user.
  31.          Incompatible with --ff.
  32.  
  33.       --ll Do not delete directories when performing a recursive delete
  34.          (--rr).
  35.  
  36.       --rr Recursively remove any directories and subdirectories in the
  37.          argument list.  The directory will be emptied of files and
  38.          removed.  Note that the user is normally prompted for removal of
  39.          any read-only files which the directory contains.  The read-only
  40.          files are removed without prompting if the --ff option is used, or
  41.          if the standard input is not a terminal and the --ii option is not
  42.          used.  If the removal of a non-empty or read-only directory was
  43.          attempted, the command will always fail (even if the --ff option
  44.          is used), resulting in an error message.
  45.  
  46.       --vv Verbose.  Display the name of each file and directory as it is
  47.          removed.
  48.  
  49.    DDIIAAGGNNOOSSTTIICCSS
  50.       All messages are generally self-explanatory.
  51.  
  52.       It is forbidden to remove the files "." and ".." in order to avoid
  53.       the consequences of inadvertently doing something like rrmm  --rr  ..**.
  54.  
  55.       rrmm returns an exit code of 0 if all the specified files and/or
  56.       directories are removed successfully.  rrmm returns a non-zero exit
  57.       code if any errors occurred.
  58.  
  59.    CCooppyyrriigghhtt  ((cc))  11999922    FFrraannkk  EE..  WWhhaalleeyy    AAllll  rriigghhttss  rreesseerrvveedd
  60.